﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using Fishing.Dal;
using Fishing.Model;

namespace Fishing
{
    public partial class Shiplist : System.Web.UI.Page
    {

        ShipDal _dal = new ShipDal();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        protected void btnSerch_Click(object sender, EventArgs e)
        {
            BindData();
        }
        public void BindData()
        {
            string sel = txtKeys.Text.Trim();


            List<t_ship> model = _dal.GetShipDataBy("", "", "", sel);
            if (model != null)
            {
                repDataList.DataSource = model;
                repDataList.DataBind();
            }
        }



    }
}